'use strict';
const Service = require('egg').Service;

class ProductsService extends Service {
  async show (id) {
    const productData = await this.app.api.products.getProductDetail(id);
    return {
      product: productData
    };
  }
}

module.exports = ProductsService;
